package com.scau.bookstore.repository.mapper;

import com.scau.bookstore.common.pojo.Catalog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.scau.bookstore.common.pojo.Book;

import java.util.List;

public interface BookDao extends JpaRepository<Book,Long>,JpaSpecificationExecutor<Book>{
	List<Book> findTop12ByCatalogOrderByModifiedDateDesc(Catalog catalog);
}
